package com.itheima.manager;

import com.itheima.service.SmsCouponHistoryService;
import com.itheima.util.Result;
import com.itheima.vo.PageBeanVo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

@Component
public class SmsCouponHistoryManager {

    @DubboReference
    SmsCouponHistoryService smsCouponHistoryService;


    //优惠券领取记录
    public Result list(Integer pageNum, Integer pageSize, Long couponId, String orderSn, Integer useStatus) {
        PageBeanVo pageBeanVo = smsCouponHistoryService.list(pageNum,pageSize,couponId,orderSn,useStatus);
        return new Result(true,200,"操作成功",pageBeanVo);
    }
}
